#!/usr/bin/env python
'''
试字节
'''


def tets_byte_func():
    #字符串转byte字节
    byte001 = b'hsj'
    byte002 = 'hsj'.encode()
    print(type(byte001),type(byte002))

if __name__ == '__main__':
    tets_byte_func()